Hundreds of thousands of companion animals are helping to alleviate the pain of loneliness and isolation.